package com.ahsjdy.st.stservice.pay;

public class NotifyHolder {

    private String outTradeNo;
    private String thirdPayId;
    private String totalAmount;
    private boolean success;

    public NotifyHolder() {

    }

    private NotifyHolder(boolean success, String outTradeNo, String thirdPayId, String totalAmount) {
        this.outTradeNo = outTradeNo;
        this.thirdPayId = thirdPayId;
        this.totalAmount = totalAmount;
        this.success = success;
    }

    public static NotifyHolder fail() {
        return new NotifyHolder(false, null, null, null);
    }

    public static NotifyHolder succ(String outTradeNo, String thirdPayId, String totalAmount) {
        return new NotifyHolder(true, outTradeNo, thirdPayId, totalAmount);
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }
    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }
    public String getThirdPayId() {
        return thirdPayId;
    }
    public void setThirdPayId(String thirdPayId) {
        this.thirdPayId = thirdPayId;
    }
    public String getTotalAmount() {
        return totalAmount;
    }
    public void setTotalAmount(String totalAmount) {
        this.totalAmount = totalAmount;
    }

}
